package com.spring.AoP5_4;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AoPtest {
    @Test
    public void testAoP(){
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(Appconfig.class);
        UserDao userDao = ac.getBean(UserDao.class);
        userDao.query();
    }
}
